package com.example.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Loan {
    private Integer id;

    private String no;

    private Integer userId;

    private Integer borrowId;

    private BigDecimal loanMoney;

    private BigDecimal profit;

    private BigDecimal retrieveMoney;

    private BigDecimal total;

    private String annualProfit;

    private Integer isLoanReward;

    private String loanRewardType;

    private String loanReward;

    private Integer status;

    private Integer serviceFeeId;

    private Date createTime;

    private Integer type;

    private User user;

    private Borrow borrow;

    public Loan(Integer id, String no, Integer userId, Integer borrowId, BigDecimal loanMoney, BigDecimal profit, BigDecimal retrieveMoney, BigDecimal total, String annualProfit, Integer isLoanReward, String loanRewardType, String loanReward, Integer status, Integer serviceFeeId, Date createTime, Integer type) {
        this.id = id;
        this.no = no;
        this.userId = userId;
        this.borrowId = borrowId;
        this.loanMoney = loanMoney;
        this.profit = profit;
        this.retrieveMoney = retrieveMoney;
        this.total = total;
        this.annualProfit = annualProfit;
        this.isLoanReward = isLoanReward;
        this.loanRewardType = loanRewardType;
        this.loanReward = loanReward;
        this.status = status;
        this.serviceFeeId = serviceFeeId;
        this.createTime = createTime;
        this.type = type;
    }

}